home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mntlb20 / lib / sgtty.c < prev    next >
C/C++ Source or Header  |  1991-02-17  |  273b  |  22 lines

  1. /*
  2.  * Written by Eric R. Smith for the Atari ST
  3.  */
  4.  
  5. #include <ioctl.h>
  6.  
  7. int
  8. stty(fd, _tty)
  9.     int fd;
  10.     struct sgttyb *_tty;
  11. {
  12.     return ioctl(fd, TIOCSETP, _tty);
  13. }
  14.  
  15. int
  16. gtty(fd, _tty)
  17.     int fd;
  18.     struct sgttyb *_tty;
  19. {
  20.     return ioctl(fd, TIOCGETP, _tty);
  21. }
  22.